package com.qf.shop.home.controller;

import com.qf.shop.common.core.utils.R;
import com.qf.shop.system.api.PromotionService;
import com.qf.shop.system.dto.PromotionDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 首页推荐模块
 */
@RestController
@RequestMapping("/promotion")
public class PromotionController {

    @Autowired
    private PromotionService promotionService;

    @GetMapping("/list")
    public R list() {
        return R.ok().put("data", promotionService.limitList());
    }
}
